package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.BasicBean;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

@DatabaseTable(tableName = "Supplier")
@EntityComment("供应商")
@BasicBean
public class Supplier implements java.io.Serializable {

	// Fields
	@Column("供应商编号")
	@DatabaseField(generatedId =true)
	public int id;
	@Column("供应商名称")
	@DatabaseField public String  name;
	@Column("联系人姓名")
	@DatabaseField public String  contact;
	@Column("联系人电话")
	@DatabaseField public String  phone;
	@Column("地址")
	@DatabaseField public String  address;
	@Column("备注")
	@DatabaseField(canBeNull=true) public String  comment;

	@Override
	public String toString() {
		return Serializer.doSerialize(this);
	}
}